//
//  YMSMemberManager.h
//  yameishe3
//
//  Created by pro on 2017/3/2.
//  Copyright © 2017年 yameishe. All rights reserved.
//

#import <Foundation/Foundation.h>
typedef void (^FailureBlock)(NSString* error);
typedef void (^SuccessBlock)(NSDictionary* result);
typedef void (^ArraySuccessBlock)(NSArray* result);
@interface YMSMemberManager : NSObject
singleton_interface(YMSMemberManager)

-(void)getTokenWithDic:(NSMutableDictionary*)dic successBlock:(SuccessBlock)successBlock failureBlock:(FailureBlock)failureBlock;

-(void)getVerificationCodeWithDic:(NSMutableDictionary*)dic successBlock:(SuccessBlock)successBlock failureBlock:(FailureBlock)failureBlock;

-(void)getEmailCodeWithDic:(NSMutableDictionary*)dic successBlock:(SuccessBlock)successBlock failureBlock:(FailureBlock)failureBlock;

-(void)MemberRegisterWithDic:(NSMutableDictionary*)dic successBlock:(SuccessBlock)successBlock failureBlock:(FailureBlock)failureBlock;

-(void)MemberLoginWithDic:(NSMutableDictionary*)dic successBlock:(SuccessBlock)successBlock failureBlock:(FailureBlock)failureBlock;

-(void)MemberLogoutWithDic:(NSMutableDictionary*)dic successBlock:(SuccessBlock)successBlock failureBlock:(FailureBlock)failureBlock;

//-(void)MemberChangePhoneNumWithDic:(NSMutableDictionary*)dic successBlock:(SuccessBlock)successBlock failureBlock:(FailureBlock)failureBlock;
-(void)MemberUpdateInfoWithDic:(NSMutableDictionary*)dic successBlock:(SuccessBlock)successBlock failureBlock:(FailureBlock)failureBlock;

-(void)MemberBasicInfoWithDic:(NSMutableDictionary*)dic successBlock:(SuccessBlock)successBlock failureBlock:(FailureBlock)failureBlock;

-(void)MemberGetQuestionWithDic:(NSMutableDictionary*)dic successBlock:(SuccessBlock)successBlock failureBlock:(FailureBlock)failureBlock;

-(void)MemberSetQuestionWithDic:(NSMutableDictionary*)dic successBlock:(SuccessBlock)successBlock failureBlock:(FailureBlock)failureBlock;

-(void)MemberGetMyQuestionWithDic:(NSMutableDictionary*)dic successBlock:(ArraySuccessBlock)successBlock failureBlock:(FailureBlock)failureBlock;

@end
